<?php
/**
 * 
 */
class ParamFdkFavorite extends AppModel {
	
  var $name = 'ParamFdkFavorite';
	
	var $displayField = 'name';  
  
  var $validate = array(

    'name' => array(
      'notempty' => array(
        'rule' => array('notempty'),
        'message' => 'This field cannot be empty.',
        //'allowEmpty' => false,
        //'required' => false,
        //'last' => false, // Stop validation after this rule
        //'on' => 'create', // Limit validation to 'create' or 'update' operations
      ),
      'maxlength' => array(
        'rule' => array('maxlength', 40),
        'message' => 'Maximum length of this field is 40.',
        //'allowEmpty' => false,
        //'required' => false,
        //'last' => false, // Stop validation after this rule
        //'on' => 'create', // Limit validation to 'create' or 'update' operations
      ),
      'isUnique' => array(
          'rule' => 'isUnique',        
          'message' => 'This value has already been taken. Select a unique value.'
      )
    )
	);
	

//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'ParamFdkBase' => array(
			'className' => 'ParamFdkBase',
			'foreignKey' => 'param_fdk_base_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
}
